package com.chtw.vuedemo.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author chtw
 * @date 2020-10-05 09:29
 */
@Document("photos")
@Data
public class Photos {
    @Id
    @Field("_id")
    private ObjectId _id;

    private int id;

    @JsonProperty("channel_id")
    @Field("channel_id")
    private int channeId;

    @JsonProperty("category_id")
    @Field("category_id")
    private int categoryId;

    private String call_index;

    private String title;

    private String link_url;

    private String img_url;

    private String seo_title;

    private String seo_keywords;
    private String seo_description;
    private String tags;
    private String zhaiyao;
    private String content;
    private int sort_id;
    private int click;
    private int status;
    private int is_msg;
    private int is_top;
    private int is_red;
    private int is_hot;
    private int is_slide;
    private int is_sys;
    private String user_name;
    private String add_time;
    private String update_time;

}
